﻿using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;
namespace Zhao.Models.Entity
{
    /// <summary>
    /// 角色表（RBAC权限控制）
    ///</summary>
    [SugarTable("Roles")]
    public class Roles
    {


        /// <summary>
        /// 备  注:
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "RoleID", IsPrimaryKey = true, IsIdentity = true)]
        public int RoleID { get; set; }

        /// <summary>
        /// 备  注:角色名称（如admin/venue_admin/user）
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "RoleName")]
        public string RoleName { get; set; } = null!;

        /// <summary>
        /// 备  注:角色描述（如"场馆管理员"）
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "Description")]
        public string? Description { get; set; }

        /// <summary>
        /// 备  注:软删除标记（0-未删除，1-已删除）
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "IsDeleted")]
        public bool? IsDeleted { get; set; }
        /// <summary>
        /// 状态 （0禁用 1启用）
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "Status")]
        public int Status { get; set; }
        /// <summary>
        /// 创建时间
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "CreateTime")]
        public DateTime CreateTime { get; set; }

    }

}